home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)t8.d64
/
type setter.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
3KB
|
93 lines
1 REM THIS VERSION IS FOR GEMINI 10X FOR OTHER PRINTERS EDIT LINES 240-360
2 DIMMD(20,1),MD$(20,1)
5 POKE 39928,10:POKE 39929,48
6 PRINT"[147] PRINTER SET UP PROGRAM"
7 PRINT"THIS PROGRAM ALLOWS YOU TO CHANGE THE"
8 PRINT"TYPESTYLES OF YOUR EPSON / GEMINI":PRINT"PRINTER FROM A MENU"
9 PRINT"IF YOU HAVE ANOTHER PRINTER THEN EDIT":PRINT"THE CHR$ CODES ACCORDING";
10 PRINT" TO YOUR PRINTER MANUAL."
11 PRINTTAB(10)"HIT ANY KEY TO START"
12 GETX$:IFX$=""THEN12
15 PRINT"[147]"
20 MD$(1,1)=" 1. STANDARD "
30 MD$(2,1)=" 2. ITALICS "
40 MD$(3,1)=" 3. INTERNATIONAL"
50 MD$(4,1)=" 4. PICA SIZE"
60 MD$(5,1)=" 5. ELITE SIZE"
70 MD$(6,1)=" 6. CONDENSED "
80 MD$(7,1)=" 7. ENLARGED "
90 MD$(8,1)=" 8. NORMAL "
100 MD$(9,1)=" 9. EMPHASIZED"
110 MD$(10,1)="10. DOUBLE STRIKE"
130 MD$(11,1)="11. UNDERLINE"
140 MD$(12,1)="12. SUPERSCRIPT"
150 MD$(13,1)="13. SUBSCRIPT"
160 MD$(14,1)="14. CANCEL"
165 FORU=1TO20:IFMD$(U,1)<>""THENPRINTTAB(10)MD$(U,1)
166 NEXT
170 PRINT TAB(8)" -------------------"
200 INPUT" ENTER PRINT OPTION DESIRED ";C$
230 C=VAL(C$):IFC<1ORC>20THENPRINT"[145][145][145]":GOTO200
231 IFMD$(C,1)=""THENPRINT"[145][145][145]":GOTO200
233 MD(C,1)=1
234 MD(C,1)=1
235 ONCGOTO240,250,700,270,280,290,300,310,320,330,340,350,360,900
240 C$=CHR$(27)+CHR$(53):GOTO 500
250 C$=CHR$(27)+CHR$(52):GOTO 500
270 C$=CHR$(27)+CHR$(66)+CHR$(1):GOTO 500
280 C$=CHR$(27)+CHR$(66)+CHR$(2):GOTO 500
290 C$=CHR$(15):GOTO 500
300 C$=CHR$(27)+CHR$(87)+CHR$(1):GOTO 500
310 C$=CHR$(20):GOTO 500
320 C$=CHR$(27)+CHR$(69):GOTO 500
330 C$=CHR$(27)+CHR$(71):GOTO 500
340 C$=CHR$(27)+CHR$(45)+CHR$(1):GOTO 500
350 C$=CHR$(27)+CHR$(83)+CHR$(0):GOTO 500
360 C$=CHR$(27)+CHR$(83)+CHR$(1):GOTO 500
380 END
500 OPEN4,4
510 PRINT#4,C$
514 FORZ=1TO20
515 IFMD(Z,1)=1THENPRINT#4,MD$(Z,1);" ";
516 NEXT
520 CLOSE 4
530 PRINT"[147]DO YOU WISH TO SELECT A":PRINT" SUPPLEMENTARY MODE?"
540 GET L$:IF L$=""THEN 540
550 IF L$="Y" THEN 15
560 IF L$="N" THEN PRINT TAB(3)"DO YOU WANT TO RETURN TO THE MENU?"
570 GET X$:IF X$=""THEN570
571 IFX$="Y" THEN 15
572 END
576 POKE39928,10:POKE39929,96 :POKE 631,131:POKE 198,1
580 END
700 PRINT "[147]" TAB(15)"1. U.S.A."
710 PRINT TAB(15)"2. ENGLAND"
720 PRINT TAB(15)"3. GERMANY"
730 PRINT TAB(15)"4. DENMARK"
740 PRINT TAB(15)"5. FRANCE"
750 PRINT TAB(15)"6. SWEDEN"
760 PRINT TAB(15)"7. ITALY"
770 PRINT TAB(15)"8. SPAIN"
780 PRINT TAB(15) "----------"
790 PRINT TAB(95) "ENTER OPTION"
800 INPUT " NUMBER";N :N=N-1
810 IFN<0ORN>7THENPRINTTAB(95)"INVALID ENTRY":FORI=1TO500:NEXTI:GOTO700
820 IF N<7 OR N>0 THEN N=N
830 C$=CHR$(27)+CHR$(55)+CHR$(N):GOTO 500
900 PRINT "[147]"TAB(10)"1. ENLARGED"
910 PRINT TAB(10)"2. DOUBLE STRIKE"
920 PRINT TAB(10)"3. EMPHASIZED"
930 PRINT TAB(10)"4. UNDERLINE"
940 PRINT TAB(10)"5. SUPER/SUBSCRIPT"
950 PRINT TAB(10)"6. UNIDIRECTIONAL"
960 PRINT TAB(10)"------------------"
970 PRINT TAB(87)"ENTER MODE TO BE CANCELED"
980 GET D$:IFD$=""THEN 980
990 IFD$<"1"ORD$>"6"THENPRINTTAB(95)"INVALID ENTRY":FORI=1TO500:NEXTI:GOTO900
1000 IF D$="1" THEN C$=CHR$(27)+CHR$(87)+CHR$(0):GOTO 500
1010 IF D$="2" THEN C$=CHR$(27)+CHR$(72):GOTO 500
1020 IF D$="3" THEN C$=CHR$(27)+CHR$(87)+CHR$(0):GOTO 500
1030 IF D$="4" THEN C$=CHR$(27)+CHR$(45)+CHR$(0):GOTO 500
1040 IF D$="5" THEN C$=CHR$(27)+CHR$(84):GOTO 500
1050 IF D$="6" THEN C$=CHR$(27)+CHR$(85)+CHR$(0):GOTO 500